package com.lingz.manager.modules.wuxue.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
/**
 * (WaterDeviceInfo)表实体类
 *
 * @author makejava
 * @since 2023-12-08 10:23:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("w_water_device_info")
@ApiModel(value = "水利物联设备")
public class WaterDeviceInfo  implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @TableId
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "站点名")
    private String stname;

    @ApiModelProperty(value = "设备id")
    private String stcd;

    @ApiModelProperty(value = "")
    private String stakeNum;

    @ApiModelProperty(value = "")
    private Long category;

    @ApiModelProperty(value = "")
    private String categoryLable;
    @ApiModelProperty(value = "")
    private Long canal;

    @ApiModelProperty(value = "")
    private String canalLable;

    @ApiModelProperty(value = "")
    private String coordinate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "安装时间")
    private Date installDate;

    private Long photo;

    @ApiModelProperty(value = "状态")
    private String online;


    @ApiModelProperty(value = "纬度")
    private Double lat;

    @ApiModelProperty(value = "经度")
    private Double lng;

    @ApiModelProperty(value = "位置")
    private String location;

}

